﻿using System;

namespace WeDonekRpc.PipeClient.Model
{
    internal class GetDataPage
    {
        /// <summary>
        /// 包的ID
        /// </summary>
        internal uint PageId;

        /// <summary>
        /// 数据类型（1 字符串类型 , 2 实体对象 3 字节流）
        /// </summary>
        public byte DataType;
        /// <summary>
        /// 包的类型(用户自定义)
        /// </summary>
        public string Type;

        /// <summary>
        /// 数据内容
        /// </summary>
        internal byte[] PageContent;
        /// <summary>
        /// 服务端ID
        /// </summary>
        internal string ServerId;

        /// <summary>
        /// 用于处理包的处理接口
        /// </summary>
        internal Interface.IAllot Allot;

        /// <summary>
        /// 当前客户端ID
        /// </summary>
        internal Guid ClientId;

        /// <summary>
        /// 客户端信息
        /// </summary>
        internal Interface.IClient Client;

        /// <summary>
        /// 当前数据流长度(合包时使用)
        /// </summary>
        internal long ContentLen;
        public byte PageType;
    }
}
